﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WaterCloud.Domain.Entity.STZBManage
{
    /// <summary>
    /// 收藏账号实体类
    /// </summary>
    [SplitTable(SplitType.Month)] //按月分表
    [SugarTable(TableName = "stzb_account_sc_{year}{month}{day}", TableDescription = "收藏账号实体表")]
    public class Account_SC
    {

        /// <summary>
        /// 主键ID
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, ColumnDescription = "主键ID")]
        public string Id { get; set; }

        /// <summary>
        /// 账号ID
        /// </summary>
        [SugarColumn(IsNullable = false, ColumnDescription = "账号ID", Length = 50)]
        public string F_Id { get; set; }

        /// <summary>
        /// 账号状态 1:试师、2:征服、3:备战区
        /// </summary>
        [SugarColumn(ColumnDescription = "账号状态 1:试师、2:征服、3:备战区")]
        public int State { get; set; }

        /// <summary>
        /// 区号
        /// </summary>
        [SugarColumn(ColumnDescription = "区号", Length = 50, IsNullable = true)]
        public string Code { get; set; }

        /// <summary>
        /// 出售状态 1:公示期、2:可购买
        /// </summary>
        [SugarColumn(ColumnDescription = "出售状态 1:公示期、2:可购买")]
        public int Sell_state { get; set; }

        /// <summary>
        /// 价格
        /// </summary>
        [SugarColumn(ColumnDescription = "价格", ColumnDataType = "decimal(18,2)")]
        public decimal Price { get; set; }

        /// <summary>
        /// 天工锤数量
        /// </summary>
        [SugarColumn(ColumnDescription = "天工锤数量")]
        public int Tgc_Num { get; set; }

        /// <summary>
        /// 荣誉点数量
        /// </summary>
        [SugarColumn(ColumnDescription = "荣誉点数量")]
        public int Ryds_Num { get; set; }

        /// <summary>
        /// 四通玉数量
        /// </summary>
        [SugarColumn(ColumnDescription = "四通玉数量")]
        public int Sty_Num { get; set; }

        /// <summary>
        /// 武器四通数量
        /// </summary>
        [SugarColumn(ColumnDescription = "武器四通数量")]
        public int Wqst_Num { get; set; }

        /// <summary>
        /// 擦边武器数量
        /// </summary>
        [SugarColumn(ColumnDescription = "擦边武器数量")]
        public int Cbwq_Num { get; set; }

        /// <summary>
        /// 普通玉数量
        /// </summary>
        [SugarColumn(ColumnDescription = "普通玉数量")]
        public int Pty_Num { get; set; }

        /// <summary>
        /// 武器数量
        /// </summary>
        [SugarColumn(ColumnDescription = "武器数量")]
        public int WeaponsNumber { get; set; }

        /// <summary>
        /// 粉武器数量
        /// </summary>
        [SugarColumn(ColumnDescription = "粉武器数量")]
        public int PowderNumber { get; set; }

        /// <summary>
        /// 藏宝阁Url
        /// </summary>
        [SugarColumn(ColumnDescription = "藏宝阁Url", Length = 500)]
        public string Cbg_Url { get; set; }

        /// <summary>
        /// 公告结束时间
        /// </summary>
        [SugarColumn(ColumnDescription = "公告结束时间", IsNullable = true)]
        public DateTime? Gg_EndTime { get; set; }

        /// <summary>
        /// 未锻造武器数量
        /// </summary>
        [SugarColumn(ColumnDescription = "未锻造武器数量")]
        public int Wdzwq_Num { get; set; }

        /// <summary>
        /// 用户ID
        /// </summary>
        [SugarColumn(ColumnDescription = "用户ID", Length = 50)]
        public string UserId { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [SugarColumn(ColumnDescription = "创建时间", InsertServerTime = true)]
        [SplitField] //分表字段
        public DateTime CreateTime { get; set; }
    }
}
